Проблема: необходимо распределить трафик между несколькими TCP-серверами.
Решение: в книге "Nginx Cookbook: Advanced Recipes for High-performance Load Balancing" автор показывает использование модуля stream для балансировки нагрузки на уровне транспортного слоя.
Пример кода:
stream { upstream mysql_read { server read1.example.com:3306 weight=5; server read2.example.com:3306; server 10.10.12.34:3306 backup; }
server { listen 3306; proxy_pass mysql_read; } }
Преимущества:
— Поддержка балансировки для TCP-сервисов. — Гибкая настройка весов серверов. — Резервирование серверов для повышения надёжности.
Проблема: необходимо распределить трафик между несколькими TCP-серверами.
Решение: в книге "Nginx Cookbook: Advanced Recipes for High-performance Load Balancing" автор показывает использование модуля stream для балансировки нагрузки на уровне транспортного слоя.
Пример кода:
stream { upstream mysql_read { server read1.example.com:3306 weight=5; server read2.example.com:3306; server 10.10.12.34:3306 backup; }
server { listen 3306; proxy_pass mysql_read; } }
Преимущества:
— Поддержка балансировки для TCP-сервисов. — Гибкая настройка весов серверов. — Резервирование серверов для повышения надёжности.
There are multiple ways you can search for Telegram channels. One of the methods is really logical and you should all know it by now. We’re talking about using Telegram’s native search option. Make sure to download Telegram from the official website or update it to the latest version, using this link. Once you’ve installed Telegram, you can simply open the app and use the search bar. Tap on the magnifier icon and search for a channel that might interest you (e.g. Marvel comics). Even though this is the easiest method for searching Telegram channels, it isn’t the best one. This method is limited because it shows you only a couple of results per search.